package edu.cmu.cs211.snake.gui;

public class SnakeBot {

    private Game game;
    private static int i = 0;
    
    public SnakeBot(Game game) {
        this.game = game;
    }
    

    // Use properties of the game state and game.getSnake().right() 
    // (or left() or up() or down()) to play the game
    public void generateMove() {
    	
    	//This example code makes the snake go in a circle...
        switch(i) {
        case 0: game.getSnake().right(); break;
        case 1: game.getSnake().down(); break;
        case 2: game.getSnake().left(); break;
        case 3: game.getSnake().up(); break;
        }
        
        i = (i+1)%4;
    }
}
